From: Vinicius Jose Latorre Date: Thu, 14 Dec 2006 17:58:40 +0000 (+0000) Subject: Fix rare bug in align.el X-Git-Tag: archive/raspbian/1%29.2+1-2+rpi1~1^2~3459 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:///%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:/?a=commitdiff_plain;h=2064073a1fd1aec77dcaeef9b9a9dbb519423576;p=emacs.git Fix rare bug in align.el --- diff --git a/lisp/ChangeLog b/lisp/ChangeLog index e499069b884..9800fb66c87 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,3 +1,8 @@ +2006-12-14 Stephen Leake (tiny change) + + * align.el (align-match-tex-pattern): Fix a rare bug which hanged + Emacs. + 2006-12-14 Richard Stallman * startup.el (use-fancy-splash-screens-p): Use frame-height diff --git a/lisp/align.el b/lisp/align.el index 43e5ab93c56..0a0144ee65a 100644 --- a/lisp/align.el +++ b/lisp/align.el @@ -1075,7 +1075,7 @@ current position." (eq (char-before pos) ?\\)) (setq count (1+ count) pos (1- pos))) (eq (mod count 2) 1)) - (goto-char (match-beginning 2)))) + (goto-char (match-beginning (if reverse 1 2))))) result)) (defun align-new-section-p (beg end separator)